<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/include/head.jsp"%>
<table id="dg" >
</table>

<div id="queryDialog" class="easyui-dialog" title="查询" style="width: 400px; height: 260px;"  
                 data-options="iconCls:'pag-list',modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true,buttons:'#searchbb'">  
            <form action="" id="searchForm">
	            <table cellpadding="0" cellspacing="1" class="formtable">
								<tr>
				<td align="right"><label class="Validform_label">源名称:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="srcName" name="srcName"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">源地址:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="srcAddr" name="srcAddr"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">源经度:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="srcLong" name="srcLong"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">源维度:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="srcLat" name="srcLat"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">目的地名称:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="desName" name="desName"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">目的地地址:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="desAddr" name="desAddr"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">目的经度:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="desLong" name="desLong"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">目的维度:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="desLat" name="desLat"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">距离:</label></td>
				<td class="value">
					<input class="easyui-numberbox" type="text"  id="distance" name="distance"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">create_by:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="createBy" name="createBy"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">create_time:</label></td>
				<td class="value">
					<input class="easyui-datebox" type="text"  id="createTime" name="createTime"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">update_by:</label></td>
				<td class="value">
					<input class="easyui-textbox" type="text"  id="updateBy" name="updateBy"/>
				</td>
				</tr>
				<tr>
				<td align="right"><label class="Validform_label">update_time:</label></td>
				<td class="value">
					<input class="easyui-datebox" type="text"  id="updateTime" name="updateTime"/>
				</td>
				</tr>
	            </table>  
            </form>
            <div style="text-align:right;margin-right:30px;"  id="searchbb">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="btnSearch()">查询</a>  
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="btnSearchCancel()">取消</a>  
            </div>                  
</div>
<script type="text/javascript">
	$(function() {
		initCurdDatagrid('routeDis','dg',{
			title:'路程距离',
			baseUrl:'',
			dwidth:'90%',//弹出对话框的宽度 百分比或者具体数字宽度
			dheight:'90%',//弹出对话框的高度 百分比或者具体数字宽度
			columns:[[    
				        {field:'srcName',title:'源名称',width:100,sortable:true},    
				        {field:'srcAddr',title:'源地址',width:100,sortable:true},    
				        {field:'srcLong',title:'源经度',width:100,sortable:true},    
				        {field:'srcLat',title:'源维度',width:100,sortable:true},    
				        {field:'desName',title:'目的地名称',width:100,sortable:true},    
				        {field:'desAddr',title:'目的地地址',width:100,sortable:true},    
				        {field:'desLong',title:'目的经度',width:100,sortable:true},    
				        {field:'desLat',title:'目的维度',width:100,sortable:true},    
				        {field:'distance',title:'距离',width:100,sortable:true},    
				        {field:'createBy',title:'create_by',width:100,sortable:true},    
				        {field:'createTime',title:'create_time',width:100,sortable:true},    
				        {field:'updateBy',title:'update_by',width:100,sortable:true},    
				        {field:'updateTime',title:'update_time',width:100,sortable:true}    
				    ]] 
		},[]);

	});
	function btnSearchCancel()
	{
		$("#queryDialog").dialog('close');  
	}
	function btnSearch()
	{ 
		$('#dg').datagrid('load',$("#searchForm").serializeObject());
		$("#queryDialog").dialog('close');
	}
	
	function reloadData()
	{
		$('#dg').datagrid('reload');
	}
	
</script>

<%@include file="/include/foot.jsp"%>